﻿namespace Entities.Enumeration {

    public class PackageStatus {

        public readonly static PackageStatus Pending    = new PackageStatus(PENDING,   "Pending",   "未处理");
        public readonly static PackageStatus Shipping   = new PackageStatus(SHIPPING,  "Shipping",  "运输中");
        public readonly static PackageStatus Delivered  = new PackageStatus(DELIVERED, "Delivered", "未处理");
        public readonly static PackageStatus Failed     = new PackageStatus(FAILED,    "Failed",    "未妥投");
        public readonly static PackageStatus Cancelled  = new PackageStatus(CANCELLED, "Cancelled", "取消");

        public const int PENDING    = 0;
        public const int SHIPPING   = 200;
        public const int DELIVERED  = 800;
        public const int FAILED     = 900;
        public const int CANCELLED  = 999;

        public int Status   { get; set; }
        public string Name  { get; set; }
        public string CName { get; set; }

        public PackageStatus(int status, string name, string cname) {
            Status = status;
            Name   = name;
            CName  = cname;
        }
        
    }
}